import * as types from './mutation-types'
import {setToken} from 'common/js/token/auth'

const mutations = {
  [types.SET_FEATURED_LIST](state, featuredList) {
    state.featuredList = featuredList
  },
  [types.SET_CATEGORIES](state, categories) {
    state.categories = categories
  },
  [types.SET_COLOR_ACTIVE](state, index) {
    state.ColorActive = index
  },
  [types.SET_VARIATIONS_LIST](state, variationsList) {
    state.variationsList = variationsList
  },
  [types.SET_TRANS_URL](state, transUrl) {
    state.transUrl = transUrl
  },
  [types.SET_INPUT](state, input) {
    state.input = input
  },
  [types.SET_SINGLE_REQUEST](state, singleRequest) {
    state.singleRequest = singleRequest
  },
  [types.SET_ORDERNO](state, orderNo) {
    state.orderNo = orderNo
  },
  [types.SET_REQUESTIME](state, requestTime) {
    state.requestTime = requestTime
  },
  [types.SET_TOKEN](state, token) {
    state.token = token
  },
  [types.SET_IS_LOGIN](state, isLogin) {
    state.isLogin = isLogin
  },
  [types.SET_NEW_ORDER_NO](state, newOrderNo) {
    state.newOrderNo = newOrderNo
  },
  [types.SET_RESUBMIT_VAL](state, reSumitVal) {
    state.reSumitVal = reSumitVal
  },
  [types.SET_SIGNUP_VAL](state, signUpVal) {
    state.signUpVal = signUpVal
  },
  [types.SET_ROUTE_LOADING](state, routeLoading) {
    state.routeLoading = routeLoading
  },
  [types.SET_UPEMAIL](state, Upemail) {
    state.Upemail = Upemail
  },
  [types.SET_ALL_CATEGORIES](state, allCategories) {
    state.allCategories = allCategories
  },
  [types.SET_SELECT_SECOND_CATEGORY](state, selectSecondCategory) {
    state.selectSecondCategory = selectSecondCategory
  },
  [types.SET_SELECT_ONE_CATEGORY](state, selectOneCategory) {
    state.selectOneCategory = selectOneCategory
  },
  [types.SET_TREE_SHAPE_CATEGORIES](state, TreeShapeCategories) {
    state.TreeShapeCategories = TreeShapeCategories
  },
  [types.SET_CATEGORY_FOCUS](state, CategoryFocus) {
    state.CategoryFocus = CategoryFocus
  },
  [types.SET_SCROLLY](state, scrollY) {
    state.scrollY = scrollY
  },
  [types.SET_CATEGORY_INDEX](state, categoryIndex) {
    state.categoryIndex = categoryIndex
  },
  [types.SET_CATEGORY_NAME](state, categoryName) {
    state.categoryName = categoryName
  },
  [types.SET_MYREQUEST](state, MyRequest) {
    state.MyRequest = MyRequest
  },
  [types.SET_USER_SHOW](state, userShow) {
    state.userShow = userShow
  },
  [types.SET_USER](state, user) {
    state.user = user
  },
  [types.SET_IS_ACTIVITY](state, isActivity) {
    state.isActivity = isActivity
  }
}

export default mutations
